package com.zhiyou100.www.qrcode;

import cn.hutool.core.io.FileUtil;
import cn.hutool.extra.qrcode.QrCodeUtil;

/**
 * @packageName: Test2
 * @className: com.zhiyou100.www.qrcode
 * @Description: TODO 二维码 测试2
 * @author: yang
 * @date: 7/18/20
 */
public class Test2 {
    public static void main(String[] args) {
        // decode -> "http://hutool.cn/"
        String decode = QrCodeUtil.decode(FileUtil.file(
                "/Volumes/myFiles/mac/java/test/hutool/src/main/resources/img/qrcode.jpg"
        ));
        System.out.println(decode);
    }
}
